// CTrayIconDemoDlg.h : header file
//

#if !defined(AFX_CTRAYICONDEMODLG_H__3E1CD20A_74CE_47A0_8FC2_A4490A4F18FC__INCLUDED_)
#define AFX_CTRAYICONDEMODLG_H__3E1CD20A_74CE_47A0_8FC2_A4490A4F18FC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "MTDriveServer.h"
#include "TrayIcon.h"
#include "afxwin.h"
#include "afxcmn.h"


/////////////////////////////////////////////////////////////////////////////
// CSMTServerDlg dialog

class CSMTServerDlg : public CDialog
{

// Construction
public:
	CSMTServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSMTServerDlg)
	enum { IDD = IDD_CTRAYICONDEMO_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSMTServerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg void OnBnClickedRbOscXml();
	afx_msg void OnBnClickedRbUdp();

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSMTServerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAbout();
	virtual void OnCancel();
	afx_msg void OnShow();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	
private:

	bool SetCMTServerProps(const CMTCMTDriveServerProps &props);
	
	CIPAddressCtrl m_ip;	
	CComboBox m_devID;
	CButton m_bntUpdate;
	CButton m_bntStop;
	CButton m_bntStart;
	CStatic m_state;
	int m_rbNetworkProtocol;
	int m_rbOSCFormat;
	int m_iWidth;
	int m_iHeight;
	int m_iPort;
	BOOL m_chkSysMouse;
	BOOL m_chkFlipV;
	BOOL m_chkFlipH;
	BOOL m_chkRelative;
	CTrayIcon* m_pTrayIcon;
	CMTDriveServer *m_pCMTServer;
	CMTCMTDriveServerProps m_cmtProps;
public:
	afx_msg void OnBnClickedRbTcp();
	afx_msg void OnIpnFieldchangedIpaddress1(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnEnChangeEditPort();
	afx_msg void OnBnClickedRbOscRaw();
	afx_msg void OnCbnSelchangeComboSensor();
	afx_msg void OnEnChangeEditWidth();
	afx_msg void OnEnChangeEditHeight();
	afx_msg void OnBnClickedCheckSysMouse();
	afx_msg void OnBnClickedCheckFlipv();
	afx_msg void OnBnClickedCheckFliph();
	afx_msg void OnBnClickedCheckRelative();
	afx_msg void OnBnClickedButtonUpdate();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonStart();
};
	

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CTRAYICONDEMODLG_H__3E1CD20A_74CE_47A0_8FC2_A4490A4F18FC__INCLUDED_)
